home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#04 (Oct85-Nov85)
/
basic
/
EjectLib Folder 1-12
/
LIBinit.asm
< prev
next >
Wrap
Assembly Source File
|
1985-10-09
|
851b
|
28 lines
;
; LIBinit ROUTINE
;Sample version of LIBinit routine
;
; REGISTER INFORMATION
;
; A0 = pointer to a version record containing:
; 2 bytes = version of Basic interpreter (ie 2 for 2.01)
; 2 bytes = revision number of Basic interpreter (ie 1 for 2.01)
; 2 bytes = 0 if decimal math, 1 if IEEE binary math format
; 2 bytes = compatibility of routine to Basic var
; 0 = compatible
; -1= incompatible
; 8 bytes = reserved array of INTEGER
;
; A4 = pointer to a handle (long word) owned by this library
; Use this as a handle to a static data segment.
; A5 = pointer to the base of the application jump table
; D0 = 0 on exit if this routine is purgeable.
LIBVER_Result EQU 6 ;offset to version record field
;for compatibility. (See above)
LIBinit:
CLR.W LIBVER_Result(A0) ;assume we're compatible
LIBinitExit:
MOVEQ #0,D0
RTS